package com.qinyu.treehole.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qinyu.treehole.entities.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 传入用户名，模糊查询并返回用户id集合
     * @param name
     * @return
     */
    Set<Integer> searchUserByName(@Param("name") String name);
}
